package xyz.xtt.admin.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资产帐户表
 * </p>
 *
 * @author author
 * @since 2025-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_asset_account")
public class TblAssetAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 帐户编号
     */
    private Long accountNo;

    /**
     * 关联资产主键
     */
    private Long assetId;

    /**
     * 拥有人id
     */
    private Long ownerId;

    /**
     * 拥有数量
     */
    private BigDecimal amount;

    /**
     * version
     */
    private Long ver;

    /**
     * 协议版本
     */
    private Long referProtocol;

    /**
     * 状态0有效，1无效
     */
    private Integer state;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
